package cn.com.connext.scrm.service.dto;

import com.connext.common.domain.UUIDDomain;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.Valid;
import java.time.ZonedDateTime;
import java.util.Date;
import java.util.Objects;

/**
 * Created by YANG205 on 2018/6/27.
 */

public class ZnhjAddDTO implements UUIDDomain{
    private static final long serialVersionUID = 1L;

    private String id;
    @Valid
    @NotBlank(message = "skuId不能为空!")
    private String skuId;
    @Valid
    @NotBlank(message = "提交码不能为空!")
    private String uniqueCode;
    @Valid
    @NotBlank(message = "瓶码不能为空!")
    private String bottleCode;

    private Integer status;

    private String reelCode;
    private String batchNo;
    private String voidTime;
    private String activeTime;
//    private String ownerId;
//    private String ownerName;

//    public String getOwnerId() {
//        return ownerId;
//    }
//
//    public void setOwnerId(String ownerId) {
//        this.ownerId = ownerId;
//    }
//
//    public String getOwnerName() {
//        return ownerName;
//    }
//
//    public void setOwnerName(String ownerName) {
//        this.ownerName = ownerName;
//    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getBottleCode() {
        return bottleCode;
    }

    public void setBottleCode(String bottleCode) {
        this.bottleCode = bottleCode;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSkuId() {
        return skuId;
    }

    public void setSkuId(String skuId) {
        this.skuId = skuId;
    }

    public String getUniqueCode() {
        return uniqueCode;
    }

    public void setUniqueCode(String uniqueCode) {
        this.uniqueCode = uniqueCode;
    }

    public String getReelCode() {
        return reelCode;
    }

    public void setReelCode(String reelCode) {
        this.reelCode = reelCode;
    }

    public String getBatchNo() {
        return batchNo;
    }

    public void setBatchNo(String batchNo) {
        this.batchNo = batchNo;
    }

    public String getVoidTime() {
        return voidTime;
    }

    public void setVoidTime(String voidTime) {
        this.voidTime = voidTime;
    }

    public String getActiveTime() {
        return activeTime;
    }

    public void setActiveTime(String activeTime) {
        this.activeTime = activeTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ZnhjAddDTO that = (ZnhjAddDTO) o;
        return
            Objects.equals(uniqueCode, that.uniqueCode) &&
                Objects.equals(bottleCode, that.bottleCode);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, skuId, uniqueCode, bottleCode, status);
    }

    @Override
    public String toString() {
        return "ZnhjAddDTO{" +
            "id='" + id + '\'' +
            ", skuId='" + skuId + '\'' +
            ", uniqueCode='" + uniqueCode + '\'' +
            ", bottleCode='" + bottleCode + '\'' +
            ", status=" + status +
            '}';
    }
}
